﻿using AutoCompleteBoxWPF.Models;
using System;
using System.Collections.Generic;

namespace AutoCompleteBoxWPF.Services
{
    public class ApplicationService
    {
        public List<Client> ReadAll()
        {
            var random = new Random();
            return new List<Client>
            {
                new Client { Id= 1, Name = "Antonov", AffiliationDate = DateTime.Today.AddDays(random.Next(500) * -1) },
                new Client { Id= 2, Name = "Bhor", AffiliationDate = DateTime.Today.AddDays(random.Next(360) * -1) },
                new Client { Id= 3, Name = "Cicerón", AffiliationDate = DateTime.Today.AddDays(random.Next(480) * -1) },
                new Client { Id= 4, Name = "Demeter", AffiliationDate = DateTime.Today.AddDays(random.Next(700) * -1) },
                new Client { Id= 5, Name = "Hola Mundo", AffiliationDate = DateTime.Today.AddDays(random.Next(120) * -1) },
                new Client { Id= 6, Name = "Mundo Nuevo", AffiliationDate = DateTime.Today.AddDays(random.Next(900) * -1) },
            };
        }
    }
}